package com.wwwarehouse.common.custom_widget.share;

/**
 * author ：minifly
 * date: 2017/9/11
 * time: 16:26
 * desc:
 */
public class ShareItem {
    public enum TypeState{
        CONTENT,LOADING,NONE;
    }

    public ShareItem(int imageRes, String title, Object tag) {
        this.imageRes = imageRes;
        this.title = title;
        this.tag = tag;
    }

    public ShareItem( int imageRes, String title, Object tag,boolean showProgress) {
        this.showProgress = showProgress;
        this.imageRes = imageRes;
        this.title = title;
        this.tag = tag;
    }

    /**
     * int imgRes, String title, Object tag
     */

    private boolean showProgress = false;
    private int imageRes;
    private String title;
    private Object tag;
    private TypeState typeState = TypeState.CONTENT;

    public TypeState getTypeState() {
        return typeState;
    }

    public void setTypeState(TypeState typeState) {
        this.typeState = typeState;
    }

    public boolean isShowProgress() {
        return showProgress;
    }

    public void setShowProgress(boolean showProgress) {
        this.showProgress = showProgress;
    }

    public int getImageRes() {
        return imageRes;
    }

    public void setImageRes(int imageRes) {
        this.imageRes = imageRes;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Object getTag() {
        return tag;
    }

    public void setTag(Object tag) {
        this.tag = tag;
    }
}
